<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title></title>
<link rel="stylesheet" href="../layui/css/layui.css">
<link rel="stylesheet" href="../css/general.css">
<link rel="stylesheet" href="../css/financial_affairs/refundment.css">
</head>
<body class="layui-layout-body">
<div id="refundment" class="layui-layout layui-layout-admin">
	<div class="layui-header">
		<div class="layui-logo"><img src="../img/common/logo.jpg" alt=""></div>
		<!-- 头部区域（可配合layui已有的水平导航） -->
		<h1>魔力公寓</h1>
		<ul class="layui-nav layui-layout-right">
			<li class="layui-nav-item"> <a href="javascript:;">{{userinfo.loginName}}<img src="../img/common/icon07.gif" class="layui-nav-img"></a>
				<dl class="layui-nav-child">
					<dd><a href="../staff/modify_password.html"><img src="../img/common/icon08.png" alt=""><span>修改密码</span></a></dd>
					<dd><a href="../staff/bank_card.html"><img src="../img/common/icon09.png" alt=""><span>银行卡信息</span></a></dd>
					<dd><a href="javascript:;" @click.stop="doLogout"><img src="../img/common/icon10.png" alt=""><span>安全退出</span></a></dd>
				</dl>
			</li>
		</ul>
	</div>
	<div class="layui-side layui-bg-black">
		<div class="layui-side-scroll"> 
			<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
			<ul class="layui-nav layui-nav-tree"  lay-filter="test">
				<li class="layui-nav-item"><a href="../survey/index.html"><img src="../img/common/icon01.png" alt="">概况</a></li>
				<li class="layui-nav-item"><a href="../rental/index.html"><img src="../img/common/icon02.png" alt="">租务</a></li>
				<li class="layui-nav-item on"><a href="../financial_affairs/index.html"><img src="../img/common/icon03.png" alt="">财务</a></li>
				<li class="layui-nav-item"><a href="../reports/index.html"><img src="../img/common/icon04.png" alt="">报表</a></li>
				<li class="layui-nav-item"><a href="../separate_accounts/index.html"><img src="../img/common/icon05.png" alt="">分账</a></li>
				<li class="layui-nav-item"><a href="../staff/index.html"><img src="../img/common/icon06.png" alt="">员工</a></li>
			</ul>
		</div>
	</div>
	<div class="layui-body"> 
		<!-- 内容主体区域 -->
		<div class="leftContent">
			<p class="layui-title">账务管理</p>
			<ul class="layui-menu">
				<li><a href="index.html">资金流水</a></li>
				<li><a href="transaction.html">交易明细</a></li>
				<li><a href="refundment.html" class="on">退款处理</a></li>
			</ul>
		</div>
		<div class="rightContent">
			<div class="section">
				<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
					<ul class="layui-tab-title">
						<li class="layui-this">退租退款</li>
						<li>订单退款</li>
					</ul>
					<div class="layui-tab-content">
						<div class="layui-tab-item layui-show">
							<table class="layui-table" lay-even>
								<colgroup>
								<col width="16%">
								<col width="17%">
								<col width="17%">
								<col width="17%">
								<col width="17%">
								<col width="16%">
								</colgroup>
								<thead>
									<tr>
										<th>请求时间</th>
										<th>退租经办人</th>
										<th>小区-房间</th>
										<th>租客</th>
										<th>退款金额</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody v-if="false">
									<tr>
										<td>2018-02-24 15:54:34</td>
										<td>StepheChow</td>
										<td>魔力1-神秘</td>
										<td>小东</td>
										<td>1500.00</td>
										<td><a href="#" class="layui-btn">确认退款</a></td>
									</tr>
									<tr>
										<td>2018-02-24 15:54:34</td>
										<td>StepheChow</td>
										<td>魔力99-神秘</td>
										<td>大海</td>
										<td>3000.00</td>
										<td><a href="#" class="layui-btn">确认退款</a></td>
									</tr>
									<tr>
										<td>2018-02-24 15:54:34</td>
										<td>StepheChow</td>
										<td>天堂人间-201</td>
										<td>谭业</td>
										<td>150.00</td>
										<td><a href="#" class="layui-btn">确认退款</a></td>
									</tr>
									<tr>
										<td>2018-02-24 15:54:34</td>
										<td>StepheChow</td>
										<td>魔力99-神秘</td>
										<td>大海</td>
										<td>150.00</td>
										<td><p class="note">管理员已确认退款<br>
												2018-02-19  18:00:01</p></td>
									</tr>
									<tr>
										<td>2018-02-24 15:54:34</td>
										<td>StepheChow</td>
										<td>天堂人间-201</td>
										<td>谭业</td>
										<td>150.00</td>
										<td><p class="note">管理员已确认退款<br>
												2018-02-19  17:59:00</p></td>
									</tr>
								</tbody>
								<tbody v-if="datas.refundList.length>0">
									<tr v-for="t in datas.refundList">
										<td v-text="t.reqTime">2018-02-24 15:54:34</td>
										<td v-text="t.agentName">StepheChow</td>
										<td v-text="t.roomName">魔力1-神秘</td>
										<td v-text="t.refundName">小东</td>
										<td v-text="t.amount">1500.00</td>
										<td v-if="t.status==0"><a href="javascript:;" @click="refundOffLine(t)"  class="layui-btn">确认退款</a></td>
										<td v-if="t.status==1"><p class="note">{{t.refundName}}已确认退款<br>
											{{t.refundTime}}</p></td>
									</tr>
								</tbody>
							</table>
							<div v-if="datas.refundList.length>0" id="laypage"></div>
							<div v-if="datas.refundList.length==0" class="nothing-box">暂无退租退款</div>
						</div>
						<div class="layui-tab-item">
							<div class="search">
								<input v-model="search2.payNo" type="text" name="search" required lay-verify="required" placeholder="订单号/支付流水号/交易流水号" autocomplete="off" class="layui-input">
							</div>
							<table class="layui-table" lay-even>
								<colgroup>
								<col width="15%">
								<col width="14%">
								<col width="15%">
								<col width="14%">
								<col width="14%">
								<col width="14%">
								<col width="14%">
								</colgroup>
								<thead>
									<tr>
										<th>订单号</th>
										<th>支付流水号</th>
										<th>订单时间</th>
										<th>付款方</th>
										<th>小区-房间</th>
										<th>支付费用（元）</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody v-if="false">
									<tr>
										<td>34828101023</td>
										<td>789434888</td>
										<td>2018-02-22  11:23:45</td>
										<td>天乐</td>
										<td>魔力公寓1-101</td>
										<td><span>3200.00</span></td>
										<td><span>已退款</span></td>
									</tr>
									<tr>
										<td>34828101023</td>
										<td>789434888</td>
										<td>2018-02-22  11:23:45</td>
										<td>天乐</td>
										<td>魔力公寓1-101</td>
										<td><span>3200.00</span></td>
										<td><span>订单已分账，不能退款</span></td>
									</tr>
									<tr>
										<td>34828101023</td>
										<td>789434888</td>
										<td>2018-02-22  11:23:45</td>
										<td>天乐</td>
										<td>魔力公寓1-101</td>
										<td><span>3200.00</span></td>
										<td><a href="#" class="layui-btn">原路退款</a></td>
									</tr>
								</tbody>
								<tbody v-if="orderList.length>0">
									<tr v-for="t in orderList">
										<td v-text="t.billNo">34828101023</td>
										<td v-text="t.payNo">789434888</td>
										<td v-text="t.tranFlowNo">2018-02-22  11:23:45</td>
										<td v-text="t.tranSource">天乐</td>
										<td >魔力公寓1-101</td>
										<td v-text="t.tranAmount"><span>3200.00</span></td>
										<td v-if="t.status==0"><a href="javascript:;" @click="refundOnLine(t)"  class="layui-btn">原路退款</a></td>
										<td v-else="t.status != 0"><span>已退款</span></td>
									</tr>
								</tbody>
							</table>
							<div v-if="initStatus" class="nothing-box">在上方搜索订单号</div>
							<div v-if=" !initStatus && orderList.length == 0" class="not-find">查询不到此订单</div>
						</div>
					</div>
				</div>
				<div class="confirm-refund">
					<div class="close"><img src="../img/common/close_img.gif" alt=""></div>
					<p class="message">是否已通过现金、转账等方式给租客退款？</p>
					<ul class="submit clearfix">
						<li>
							<button class="layui-btn layui-btn-primary layui-btn-primary02" lay-submit lay-filter="formDemo">取消</button>
						</li>
						<li>
							<button class="layui-btn layui-btn-primary" lay-submit lay-filter="formDemo">已退款</button>
						</li>
					</ul>
				</div>
				<div class="verification-code">
					<div class="close"><img src="../img/common/close_img.gif" alt=""></div>
					<dl>
						<dt>请输入手机验证码
							<p>159****4826
								<input type="button" id="btn" value="发送验证码" onclick="settime(this)">
							</p>
						</dt>
						<dd>
							<input type="text" name="verification-code" required  lay-verify="required" placeholder="输入验证码" autocomplete="off" class="layui-input">
						</dd>
					</dl>
					<ul class="submit clearfix">
						<li>
							<button class="layui-btn layui-btn-primary layui-btn-primary02" lay-submit lay-filter="formDemo">取消</button>
						</li>
						<li>
							<button class="layui-btn layui-btn-primary" lay-submit lay-filter="formDemo">退款</button>
						</li>
					</ul>
				</div>
				<div class="refund-failed">
					<div class="close"><img src="../img/common/close_img.gif" alt=""></div>
					<p class="message">提现失败，错误码【8008】。请稍后再试。</p>
					<ul class="submit clearfix">
						<li>
							<button class="layui-btn layui-btn-primary" lay-submit lay-filter="formDemo">确定</button>
						</li>
					</ul>
				</div>
				<div class="refund-success">
					<div class="close"><img src="../img/common/close_img.gif" alt=""></div>
					<p class="message">申请退款成功</p>
					<ul class="submit clearfix">
						<li>
							<button class="layui-btn layui-btn-primary" lay-submit lay-filter="formDemo">确定</button>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="../layui/layui.js"></script>
<script src="../js/jquery-3.3.1.min.js"></script>
<script src="../js/moment.min.js"></script>
<script src="../js/storejson2.min.js"></script>
<script src="../js/mock.js"></script>
<script src="../js/mockdata.js"></script>
<script src="../js/vue.min.js"></script>
<script src="../js/vue.global.js"></script>
<script src="../js/financial_affairs/refundment.js"></script>
</body>
</html>